/*************************testStation.cpp***********************
 * this file is the test file for Stations
 * author: Zebras Wen
 * date: 2012.11.03
 * version: 0.01
 * history:
 * copyLeft:
 *   all rights are under the GPL v3.0
 *********************************************************/


#include<iostream>
#include "Station.h"
using namespace std;



int main__()
{
    Station station1, station2, station3;
    station1.setStationName("Hefei");
    station2.setStationName("Shanghai");
    station3.setStationName("Guangzhou");

    station1.addNextStation(&station2);
    station1.addNextStation(&station3);

    list<Station*> next = station1.getNextStations();

    for(list<Station*>::iterator ite = next.begin(); ite != next.end(); ++ite)
    {
        cout<<(*ite)->getStationName()<<endl;
    }
    // system("pause");
    return 0;
}
